package com.daoeping.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Usr_certificateref entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "usr_certificateref", catalog = "daoeping")
public class Usr_certificateref implements java.io.Serializable {

	// Fields

	private Integer id;
	private Bsc_certificate bsc_certificate;
	private Usr_training usr_training;

	// Constructors

	/** default constructor */
	public Usr_certificateref() {
	}

	/** full constructor */
	public Usr_certificateref(Bsc_certificate bsc_certificate,
			Usr_training usr_training) {
		this.bsc_certificate = bsc_certificate;
		this.usr_training = usr_training;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "cretificate_id", nullable = false)
	public Bsc_certificate getBsc_certificate() {
		return this.bsc_certificate;
	}

	public void setBsc_certificate(Bsc_certificate bsc_certificate) {
		this.bsc_certificate = bsc_certificate;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "training_id", nullable = false)
	public Usr_training getUsr_training() {
		return this.usr_training;
	}

	public void setUsr_training(Usr_training usr_training) {
		this.usr_training = usr_training;
	}

}